package com.joysuch.wwyt.edu.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author ZhangDong
 * @Date 2020/7/6 11:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EduCertUserInfoDto {

    @ApiModelProperty("证书id")
    private Long certId;
    @ApiModelProperty("证书名称")
    private String certName;
    @ApiModelProperty("证书编号")
    private String certNo;
    @ApiModelProperty("状态")
    private String state;
    @ApiModelProperty("取证日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date takenTime;
    @ApiModelProperty("到期日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date expireTime;

    public EduCertUserInfoDto(Long certId,String certName, String certNo, Date takenTime, Date expireTime) {
        this.certId=certId;
        this.certName = certName;
        this.certNo = certNo;
        this.takenTime = takenTime;
        this.expireTime = expireTime;
    }
}
